package com.xifly.datatransmission.web;

import com.xifly.datatransmission.domain.Result;
import com.xifly.datatransmission.enums.ResultCode;
import org.springframework.web.bind.annotation.ExceptionHandler;

public class BaseController {
    @ExceptionHandler(Exception.class)
    public Result handleException(Exception e) {
        e.printStackTrace();
        return new Result(ResultCode.WEAK_NET_WORK);
    }
}
